home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19941221-19950208 / 000180_news@columbia.edu_Mon Jan 16 16:46:18 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  10KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA03580
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Mon, 16 Jan 1995 11:46:24 -0500
  3. Received: by apakabar.cc.columbia.edu id AA25613
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Mon, 16 Jan 1995 11:46:22 -0500
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Kermit File Transfer and tn3270
  9. Date: 16 Jan 1995 16:46:18 GMT
  10. Organization: Columbia University
  11. Lines: 169
  12. Message-Id: <3fe7sq$p0a@apakabar.cc.columbia.edu>
  13. References: <173276AEB.BDESIMON@uga.cc.uga.edu>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Keywords: Mainframe, 3270
  16. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  17.  
  18. In article <173276AEB.BDESIMON@uga.cc.uga.edu>,
  19. Bert DeSimone <BDESIMON@UGA.CC.UGA.EDU> wrote:
  20. >Gotta figure this has come up before.  We are evaluating a terminal server
  21. >that supports tn3270.  No problem using MS-Kermit to connect to the terminal
  22. >server and connect via tn3270 to an IBM mainframe.  However, file
  23. >transfers (either invoking server on the mainframe or not) always fail.
  24. >Connecting through this same terminal server to the same mainframe
  25. >through a 7171 presents *no* problem with file transfer.  (BTW: I don't
  26. >have to be using tn3270 on a terminal server; file transfers with Kermit
  27. >using tn3270 on a Unix host fail the same way).
  28. >I am speculating that the mainframe Kermit must send a transparent mode
  29. >sequence, ordinarily processed by the protocol converter, that is causing 
  30. >the problem.
  31. One of the major strengths of the Kermit protocol is its ability to
  32. transfer files with IBM mainframes over a wide variety of connection
  33. types, and there is an excellent Kermit software program for the IBM
  34. mainframe, which is available for VM/CMS, MVS/TSO (and ROSCOE), CICS, and
  35. MUSIC.  The current version is 4.3.0, with version 4.3.1 in beta test.
  36.  
  37. All of the Kermit books and manuals ("Kermit, A File Transfer Protocol",
  38. "Using MS-DOS Kermit", "Using C-Kermit", and the IBM mainframe Kermit
  39. online manuals) describe the process(es) in some detail.  Here is a brief
  40. summary.
  41.  
  42. Half-duplex (local-echo), line-at-a-time connections are generally handled
  43. by the "ibm" macro that is built in to MS-DOS Kermit and C-Kermit, which
  44. performs the following protocol-related settings:
  45.  
  46.   set local-echo on
  47.   set parity mark
  48.   set flow none
  49.   set handshake xon
  50.  
  51. Full-screen sessions go through a 3270 terminal emulator.  This can reside
  52. anywhere between the client software (such as MS-DOS Kermit) and the
  53. mainframe.  For the past 10 or 20 years, the most common place to find the
  54. 3270 emulator was on a special purpose "protocol converter": a box that
  55. has serial lines on one side and a connection to the mainframe on the
  56. other.  This box generally works by tricking the mainframe into thinking
  57. it is a "control unit" with multiple 3270 terminals attached, and at the
  58. same time tricking the terminals into thinking they are communicating with
  59. a "normal" ASCII character-at-a-time host.  The box converts between 3270
  60. data streams and ASCII terminal (e.g. VT100) conventions.  This includes
  61. ASCII/EBCDIC character-set conversion, cursor positioning and screen
  62. painting, and keystroke interpretation.
  63.  
  64. As you can imagine, all of these conversions would normally have a
  65. disastrous effect on Kermit protocol packets, and also upon any other type
  66. of data that has to be transmitted "as is", without conversion, such as
  67. graphics terminal directives.  Thus, many protocol converters support a
  68. "transparent mode", that allows the mainframe host to command them to turn
  69. off their conversion functions, and at a later time, turn them back on.
  70.  
  71. When everything works as planned, the only Kermit commands required for
  72. going through the protocol converter are:
  73.  
  74.   set flow xon/xoff ; (usually)
  75.   set parity even   ; (or other)
  76.  
  77. Everything else corresponds to the normal Kermit defaults (remote echo,
  78. no "handshake", etc).
  79.  
  80. Unfortunately, the method for entering and leaving transparent mode
  81. differs from one 3270 emulation product to another.  Ideally, there are
  82. two components: (1) the identification phase, in which the mainframe
  83. software issues a special instruction that causes the protcol converter to
  84. respond in a unique (but harmless) way; and (2) the actual enter- and
  85. exit-transparent-mode directives.
  86.  
  87. IBM Mainframe Kermit needs to know which kind of transparency, if any, is
  88. used by the protocol converter so it can be put into transparent mode at
  89. the beginning of packet protocol and taken out of it upon return to
  90. interactive command mode.  There are several ways that mainframe Kermit
  91. can go about this.  First, you can use the SET CONTROLLER command to tell
  92. it which style of transparency is used by the protocol converter.  Second,
  93. mainframe Kermit can be set up by the system administrator to always use a
  94. particular style.  Third, it can attempt to "autodiscover" the controller
  95. type by issuing various types of identification queries and checking the
  96. results.  The third method is not very reliable, however, since many types
  97. of protocol converters fail to respond to these queries even when they do
  98. implement a particular style of transparency.
  99.  
  100. Nowadays, special-purpose protocol converters are giving way to general
  101. purpose terminal and compute servers that include a "tn3270" function.
  102. tn3270 is a special kind of TELNET program that also performs 3270
  103. emulation, and requires that the mainframe be on TCP/IP network and have
  104. a TN3270 server.  Here are two examples:
  105.  
  106.  1. UNIX tn3270.  Most UNIX systems come with a tn3270 program that lets
  107.     you make a full-screen connection to an IBM mainframe.  Once you have
  108.     made the connection, you should be able to start Kermit on the
  109.     mainframe, give it a SEND, RECEIVE, or SERVER command, escape back to
  110.     your terminal emulator (e.g. MS-DOS Kermit), and transfer files
  111.     without any special settings.  If you have trouble with this, then:
  112.  
  113.      . Ask mainframe Kermit to "show controller".  If it doesn't say
  114.        Series/1, then tell it to "set controller series1".
  115.  
  116.      . Try using shorter packets.  The maximum length that can pass
  117.        through the protocol converter might be less than what you are
  118.        trying to use.  A typical maximum value might be 1700.
  119.  
  120.      . Tell one or both Kermit programs to "set parity space".
  121.  
  122.  2. Cisco terminal server tn3270.  Current releases of Cisco terminal
  123.     server software include a tn3270 feature that is supposed to permit
  124.     Kermit transfers, but it has bugs.  Sometimes these bugs can be worked
  125.     around by using the methods listed in (1) above and specifying VERY
  126.     short packets, like 30 or 40 bytes.  Sometimes they can't be worked
  127.     around at all.  A future release of Cisco software (probably 10.3)
  128.     will include new tn3270 software that implements Series/1-style
  129.     transparency correctly, and allows Kermit transfers of both text and
  130.     binary files in both directions using packet lengths up to about 1900
  131.     (or whatever the total screen size is).
  132.  
  133. If you try all of these workarounds with your terminal server and still
  134. get failed transfers, make packet logs and/or debug logs in both Kermit
  135. programs to find out what the terminal server is delivering to each Kermit
  136. program, and report the misbehavior to your terminal server vendor.
  137.  
  138. For further information about specific protocol converters and how to
  139. configure IBM Mainframe Kermit for them, please read the ik0aaa.hlp file
  140. that comes with IBM Mainframe Kermit.
  141.  
  142. Finally, it is possible to transfer files through a 3270 fullscreen
  143. connection even when 3270 emulator can't be put into transparent mode at
  144. all.  You can read about this in the C-Kermit update notes file
  145. (ckcker.upd) and the MS-DOS Kermit update notes files (KERMIT.UPD).
  146. Quoting from the latter:
  147.  
  148. "Doomsday Kermit" (DDK) techniques allow file transfer with IBM mainframes
  149. through 3270 protocol converters that do NOT support transparent mode, to be
  150. used in conjunction with IBM Mainframe Kermit's SET CONTROLLER FULLSCREEN
  151. command on VM/CMS, MVS/TSO, or CICS.  MS-DOS Kermit 3.13 or later and IBM
  152. Mainframe Kermit 4.2.3 or later required.  Commands:
  153.     
  154.   SET PARITY EVEN     ; Or whatever
  155.   SET FLOW XON/XOFF     ; Or whatever
  156.   SET SEND START 62     ; Greater-than sign
  157.   SET RECEIVE START 62     ; Ditto
  158.   SET BLOCK BLANK-FREE-2 ; New block-check type
  159.   SET HANDSHAKE NONE
  160.  
  161. BLANK-FREE-2 is a new block-check type, exactly like type 2, except encoded
  162. to never contains blanks.  Give IBM Mainframe Kermit the following commands:
  163.  
  164.   SET CONTROLLER FULL
  165.   SET SEND START 62
  166.   SET RECEIVE START 62
  167.   SET BLOCK BLANK-FREE-2
  168.   SET HANDSHAKE 0
  169.  
  170. Doomsday Kermit file transfers are not as reliable as regular Kermit protocol
  171. transfers, and they are much slower.  Use this method only as a last resort;
  172. that is, only when you can't get a transparent-mode fullscreen connection or
  173. a linemode connection to the mainframe.
  174.  
  175. (end quote)
  176.  
  177. And beyond finally: in the future, we expect to add 3270 emulation to the
  178. Kermit software itself, so you will be able to make tn3270 connections
  179. directly from Kermit to the mainframe without having to go through a
  180. "black box" for the conversion.  Of course, Kermit software will handle
  181. transparency correctly (and automatically).  (And no, I can't estimate
  182. when built-in 3270 emulation will be available.)
  183.  
  184. - Frank